﻿<%@ Assembly Name="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Page Language="C#" Inherits="Components2.CustomAdmin.AdminAreaChromeSettingsPage, Components2.CustomAdmin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" MasterPageFile="~/_layouts/application.master"      %> 
<%@ Import Namespace="Microsoft.SharePoint.WebControls" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/LinksTable.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.ascx" %>
<%@ Register Tagprefix="CMS" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="CMSInternal" Namespace="Microsoft.SharePoint.Publishing.Internal.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="Admin Master Page Settings" EncodeMethod='HtmlEncode'/>
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="Admin Master Page Settings" EncodeMethod='HtmlEncode'/>
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
	<script type="text/javascript" language="JavaScript" src="/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/commonvalidation.js"></script>
    <script type="text/javascript" Language="javascript">
	    function _spFormOnSubmit() {
		    return true;
	    }
    </script>
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderPageDescription" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="Use this page to review current settings or assign a different Application Master Page for this site collection" EncodeMethod='HtmlEncode'/>
	<table ID="webapplicationWarning" Visible="False" runat="server">
		<tr>
			<td>
				<asp:Image
		           src="/_Layouts/images/ewr024.gif"
		           alt="<%$Resources:cms,warning_image_alttext%>"
		           runat="server"/>
			</td>
			<td>
				<asp:Label runat="server"  class="ms-alerttext" Text="The 'Custom Admin Master Page' feature is not enabled in this web application." />
			</td>
		</tr>
	</table>
	<table ID="invalidSystemMasterPageWarning" Visible="False" runat="server">
		<tr>
			<td>
				<asp:Image ID="Image1"
		           src="/_Layouts/images/ewr024.gif"
		           alt="<%$Resources:cms,warning_image_alttext%>"
		           runat="server"/>
			</td>
			<td>
				<asp:Label ID="Label1" runat="server"  class="ms-alerttext" Text="The application master page setting currently applied to this site is invalid. Please select a new master page and apply it. " />
			</td>
		</tr>
	</table>
</asp:Content>

<asp:Content contentplaceholderid="PlaceHolderMain" runat="server">
		<style>
			.ms-areachromesettings-detail-item-heading { font-weight: bold; }
		</style>
		<table class=propertysheet border="0" width="100%" cellspacing="0" cellpadding="0" id="diidProjectPageOverview">
<!-- Application Master Page section -->
			<wssuc:InputFormSection Title="Application Master Page"
				Description="Use the application master page for all application pages (_layouts) in this site. Click the first option to use the default application master page. Click the second option to select a unique master page."
				runat="server">
				<Template_InputFormControls>
					<wssuc:InputFormControl runat="server">
						<Template_Control>
							<CMSInternal:RadioButtonWithChild ID="inheritSystemMasterPageRadioButton" Text="Use the default application master page"  GroupName="InheritSystemMasterPageGroup" runat="server"/>
							<CMSInternal:RadioButtonWithChild ID="selectSystemMasterPageRadioButton"  Options="DisableChildWhenNotSelected" Text="Select an application master page for this site collection"   GroupName="InheritSystemMasterPageGroup" runat="server">
								<Template_ChildControl>
									<CMSInternal:DropDownListWithDetails DropDownListId="SystemMasterPageDropDownList" Tooltip="<%$Resources:cms, areachromesettings_selectsystemmasterpage_radiotext%>"
										runat="server" id="systemMasterPageSelectionControl">
									</CMSInternal:DropDownListWithDetails>
								</Template_ChildControl>
							</CMSInternal:RadioButtonWithChild>
						</Template_Control>
					</wssuc:InputFormControl>
				</Template_InputFormControls>
			</wssuc:InputFormSection>
			<wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
				<Template_Buttons>
					<asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="ButtonSaveSettings_Click" Text="<%$Resources:wss,multipages_okbutton_text%>" id="ButtonSaveSettings" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
					<asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="HandleCancelButtonClick" Text="<%$Resources:cms, multipages_cancelbutton_text%>" id="BtnCancel" CausesValidation="false" AccessKey="<%$Resources:cms,cancelbutton_accesskey%>"/>
				</Template_Buttons>
			</wssuc:ButtonSection>
			<SharePoint:FormDigest runat=server/>
		</table>
</asp:Content>
